package com.plian.system.entity.pm.listedcompany;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * @Description: TODO
 * @Author: Take-off
 * @Date: 2023/2/27 9:19 AM
 * @Param
 * @return
 * @Version: 1.0
 **/
@Data
@TableName("pm_matter_record")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "MattersRecord 对象", description = "综合事项备案")
public class MattersRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编码")
    private String code;

    @ApiModelProperty(value = "填报单位")
    private String fillingOrgId;

    @ApiModelProperty(value = "备案事项")
    private String recordEvent;

    @TableField(exist = false)
    @ApiModelProperty(value = "附件")
    private List<HashMap> docList;

    @ApiModelProperty(value = "审批人")
    private String approvedUser;

    @ApiModelProperty(value = "审批时间")
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME, timezone = "Asia/Shanghai")
    private Date approvedTime;

    @ApiModelProperty(value = "审批意见")
    private String approvedOpinion;

    @ApiModelProperty(value = "表单审批类型")
    private String formType;

}
